package atguigu05._super.exer1;

/**
 * ClassName: Kids
 * Package: atguigu03._extends.exer1
 * Description:
 *    修改方法重写的练习2中定义的类Kids中employeed()方法，在该方法中调用父类ManKind的employeed()方法，
 *      然后再输出"but Kids should study and no job."
 * @Author BuTang
 * @Create 2023/3/6 10:06
 * @Version 1.0
 */
public class ManKind extends Kids {
        private int yearsOld;

    public ManKind(int yearsOld) {
        this.yearsOld = yearsOld;
    }
    public ManKind() {
    }


    public ManKind(int sex, int salary, int yearsOld) {
        super(sex, salary);
        this.yearsOld = yearsOld;
    }

    public int getYearsOld() {
        return yearsOld;
    }

    public void setYearsOld(int yearsOld) {
        this.yearsOld = yearsOld;
    }


    public void employeed(){
        System.out.println("111");
    }

}
